#include<stdio.h>
int main()
{
	int i = 1;
	int n = 1;
	float ret = 1;
	float sum = 0;
	scanf_s("%d", &n);
	for (i = 1; i <= n; i++)
	{
		ret = ret * 1 / i;
		sum = sum + ret;
	}
	printf("%f\n", ret);
	printf("%f\n", sum);
	return 0;
}